package com.bjut.vendormgrsys.web.dto.other;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.validation.annotation.Validated;

/**
 * PositionSearchQueryFilterDatePublished
 */
@Validated


public class PositionSearchQueryFilterDatePublished   {
  @JsonProperty("from")
  private String from = null;

  @JsonProperty("to")
  private String to = null;

  public PositionSearchQueryFilterDatePublished from(String from) {
    this.from = from;
    return this;
  }

  /**
   * Get from
   * @return from
   **/
  @Schema(description = "")
  
    public String getFrom() {
    return from;
  }

  public void setFrom(String from) {
    this.from = from;
  }

  public PositionSearchQueryFilterDatePublished to(String to) {
    this.to = to;
    return this;
  }

  /**
   * Get to
   * @return to
   **/
  @Schema(description = "")
  
    public String getTo() {
    return to;
  }

  public void setTo(String to) {
    this.to = to;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PositionSearchQueryFilterDatePublished positionSearchQueryFilterDatePublished = (PositionSearchQueryFilterDatePublished) o;
    return Objects.equals(this.from, positionSearchQueryFilterDatePublished.from) &&
        Objects.equals(this.to, positionSearchQueryFilterDatePublished.to);
  }

  @Override
  public int hashCode() {
    return Objects.hash(from, to);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PositionSearchQueryFilterDatePublished {\n");
    
    sb.append("    from: ").append(toIndentedString(from)).append("\n");
    sb.append("    to: ").append(toIndentedString(to)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}
